def common_assert(case, expect_result, resp):
    json_data = resp.json()
    case.assertEqual(expect_result['status_code'], resp.status_code)
    case.assertEqual(expect_result['success'], json_data['success'])
    case.assertEqual(expect_result['code'], json_data['code'])
    case.assertIn(expect_result['message'], json_data['message'])